package com.cisdi.my.shop.commons.context;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author pengyangyan
 * @version 1.0.0
 * @date 2019年09月16日 13:51:00
 */
public final class SpringContext {

    public Object getBean(String beanId){
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-context.xml");
        return context.getBean(beanId);
    }

}
